home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 639 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: jzipnick@best.com (Jay Zipnick)
  3. Newsgroups: comp.std.c++
  4. Subject: <fp.h> & double_t/float_t
  5. Date: 2 Mar 1996 16:04:31 GMT
  6. Organization: Best Internet Communications
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <jzipnick-0103961840370001@jzipnick.vip.best.com>
  9. NNTP-Posting-Host: taumet.eng.sun.com
  10. Content-Type: text
  11. X-Nntp-Posting-Host: jzipnick.vip.best.com
  12. Content-Length: 1167
  13. Originator: clamage@taumet
  14.  
  15. Back in 1992, I was taught a "better and more portable" way of writing a
  16. numerical algorithm I was working on. I was primarily interested in speed,
  17. but I needed the precision of at least a double, and was not sure whether
  18. to use a double or a long double, since my code may run on different
  19. processors, and on one, long double was the fastest, and on another double
  20. was the fastest. I was told use neither! Use double_t.
  21.  
  22. Specifically, I was told:
  23.  
  24. - double_t is guaranteed to be the fastest floating point type, for your
  25. implementation, that is at least the size of a double.
  26.  
  27. - also there exists a typedef named float_t, which provides the fastest
  28. floating point type, (float, double, long double), for your
  29. implementation, that is at least the size of a float.
  30.  
  31. - start using the new standard header <fp.h>, which is where float_t and
  32. double_t are defined.
  33.  
  34. This was then, I believe, the emerging standard from the Numerical C
  35. Extensions Group.
  36.  
  37. Now it is 1996. Has there been any changes with respect to the three
  38. points above? I did not see any references to float_t, double_t, or <fp.h>
  39. in the April draft.
  40.  
  41. Please also reply to jzipnick@best.com.
  42.  
  43. Jay Zipnick
  44.  
  45.  
  46. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your
  47.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  48.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  49.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  50.   Comments? mailto:std-c++-request@ncar.ucar.edu
  51. ]
  52.